.flex {
  display: flex;
}
.flex_1 {
  flex: 1;
}
.section{
  display: flex;
  position: absolute;
  flex: 1;
  height: 100%;
  width: 100%;
  flex-direction: column;
}
.uedit-top{
  position: relative;
  display: flex;
  width: 100%;
  height: 54px;
  background-color: #fff;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,.1);
  align-items: center;
  z-index: 999999;
  .btn-group_operation{
    position: absolute;
    left: 280px;
    display: flex;
  }
  .btn-group_other{
    position: absolute;
    right: 280px;
    display: flex;
  }
  .icon-group-item{
    cursor: pointer;
    margin-left: 20px;
    text-align: center;
    &:hover{
      .text{
        color: #409EFF;
      }
    }
    &:first-child{
      margin-left: 0;
    }
    .icon{
      font-size: 18px;
    }
    .text{
      margin-top: 4px;
      margin-bottom: 0;
      font-size: 12px;
      display: block;
      padding: 0;
      color: #5E6E7E;
    }
  }
}
.uedit-wrap{
  display: flex;
  flex: 1;
  box-sizing: border-box;
  width: 100%;
  height: 60px;
  margin-bottom: 5px;
}
.wrap{
  height: calc(100vh - 74px);
}
.field{
  font-size: 12px;
  flex: 1;
  margin-bottom: 10px;
  .field-title{
    padding-left: 10px;
    border-bottom: 1px solid #ccc;
    height: 49px;
    font-size: 16px;
    line-height: 49px;
    background-color: #fafafa;
  }
}
.attribute{
  width: 500px;
  border-top: 1px solid #e1e2e2;
  border-left: 1px solid #dfdfdf;
  display: flex;
  .attr-left{
    border-right: 1px solid #e1e2e2;
    width: 240px;
  }
  .attr-right{
    display: flex;
    flex: 1;
  }
  .tabs{
    display: flex;
    flex-direction: column;
    flex: 1;
    .el-tab-pane{
      padding: 0;
      height:100%;
      overflow-y:auto;
      overflow-x:hidden;
    }
  }
}
.tree{
  height: calc(100vh - 116px);
  overflow-y: auto;
}
.box-card{
  flex: 1;
  display: flex;
  flex-direction: column;
}
.menu{
  width: 260px;
  flex-direction: column;
  border-right: 1px solid #dfdfdf;
}
.menu-title{
  padding: 8px 0;
  font-size: 13px;
}
.default-menu{
  width: 100%;
}
.sketchpad{
  background: #F5F5F5;
  display: flex;
  flex: 1;
  padding: 20px;
}
.view-tabs-bar{
  background-color: #f5f5f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.view-edit{
  margin-right: 10px;
}
.view-tabs{
  flex: 1;
  background-color: #f5f5f5;
  .view-tabs_add{
    background-color: #f9f9f9;
    display: inline-block;
    height: 40px;
    padding: 0 10px;
    line-height: 40px;
    font-size: 12px;
    color: #a2a5ac;
    box-sizing: border-box;
    white-space: nowrap;
    &:hover{
      color: #409eff;
      cursor: pointer;
    }
  }
  .view-tabs_item{
    background-color: #f9f9f9;
    display: inline-block;
    height: 40px;
    padding: 0 10px;
    line-height: 40px;
    font-size: 12px;
    color: #a2a5ac;
    border-right: 1px solid #cdd1d4;
    box-sizing: border-box;
    white-space: nowrap;
    &:hover{
      color: #409eff;
      cursor: pointer;
    }
    &.active{
      color: #409eff;
      font-weight: bold;
      background-color: #fff;
    }
    .el-icon-close{
      display: inline-block;
      width: 15px;
      height: 15px;
      line-height: 15px;
      text-align: center;
      border-radius: 50%;
      &:hover{
        cursor: pointer;
        font-weight: bold;
        color: #fff;
        background-color: #797979;
      }
    }
  }
}
.rule{
  padding: 10px;
}
.rule-state{
  cursor: pointer;
  &.active{
    color: #00a0e9;
  }
}

/*element css reset*/
.el-tabs--border-card{
  border: none;
}
::v-deep.component,::v-deep.tabs{
  .el-collapse-item__header{
    padding-left: 10px;
    background-color: #fafafa;
    color: #3e3f41;
    font-weight: bold;
    border-bottom: 1px solid #e1e2e2;
  }
  .el-collapse-item__wrap{
    border-bottom: 1px solid #e1e2e2;
  }
  .el-collapse-item__content{
    padding: {
      top: 20px;
      left: 10px;
      right: 10px;
      bottom: 10px;
    }
  }
  .el-tabs__content{
    padding: 0;
  }
  [aria-labelledby='tab-field'], [aria-labelledby='tab-rule']{
    padding: 15px;
  }
}
::v-deep.el-tabs__item{
  height: 51px;
  line-height: 51px;
}
::v-deep.el-tabs--border-card>.el-tabs__header .el-tabs__item{
  height: 51px;
  line-height: 51px;
}
